package com.freewater.parking.domain.common;

import java.util.List;

/**
 * 领域事件队列
 */
public interface EventQueue {

    void enqueue(DomainEvent event);

    List<DomainEvent> queue();

    void clear();
}
